package com.qf.fmall2202;

import cn.hutool.core.codec.Base64;
import org.junit.jupiter.api.Test;
public class testBase64 {
    @Test
    void testBase64() {
        String a = "伦家是一个非常长的字符串";
        //5Lym5a625piv5LiA5Liq6Z2e5bi46ZW/55qE5a2X56ym5Liy
        String encode = Base64.encode(a);
        System.out.println(encode);
        // 还原为a
        String decodeStr = Base64.decodeStr(encode);
        System.out.println(decodeStr);
    }
}
